package com.ssfGame.puremvc.controller.cell
{
	import com.game.utils.MyTimer;
	import com.ssfGame.puremvc.model.LoadProxy;
	import com.ssfGame.puremvc.view.module.queueload.vo.QueueLoadVO;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class LoadCommand extends SimpleCommand
	{
		public function LoadCommand()
		{
		}
		override public function execute(notification:INotification):void{
			var queueLoadVO:QueueLoadVO=notification.getBody() as QueueLoadVO;
			if(queueLoadVO.showLoadVO!=null){
				sendNotification(queueLoadVO.showLoadVO.loadType,queueLoadVO.showLoadVO);
			}
			new MyTimer().setTimer(function ():void{
				(facade.retrieveProxy(LoadProxy.NAME) as LoadProxy).addQueueLoad(queueLoadVO);	
			},10,1);
		}
	}
}